Bug 539944 – Add GtkScaleButton API so struct fields can be marked as
authorMichael Natterer <mitch@imendio.com>
Fri, 4 Jul 2008 09:02:20 +0000 (09:02 +0000)
committerMichael Natterer <mitch@src.gnome.org>
Fri, 4 Jul 2008 09:02:20 +0000 (09:02 +0000)
2008-07-04  Michael Natterer  <mitch@imendio.com>

Bug 539944 – Add GtkScaleButton API so struct fields can be marked
as private

* gtk/gtk.symbols
* gtk/gtkscalebutton.[ch]: add gtk_scale_button_get_plus_button()
and _get_minus_button(). Patch by Christian Dywan.

svn path=/trunk/; revision=20757

ChangeLog
gtk/gtk.symbols
gtk/gtkscalebutton.c
gtk/gtkscalebutton.h

index 3de7e104bae50dca64bcb6d4a06d67aa8a240bd8..1a6c32f673e998274b097941f3093be32f144653 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2008-07-04  Michael Natterer  <mitch@imendio.com>
+
+       Bug 539944 – Add GtkScaleButton API so struct fields can be marked
+       as private
+
+       * gtk/gtk.symbols
+       * gtk/gtkscalebutton.[ch]: add gtk_scale_button_get_plus_button()
+       and _get_minus_button(). Patch by Christian Dywan.
+
 2008-07-04  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtkscalebutton.c:
index 60ee9720de294fb9ca090547086afda5b964ddf9..1162e7e91afc427cca19e46683a8c7f1ea50e06f 100644 (file)
@@ -3311,6 +3311,8 @@ gtk_scale_button_get_adjustment
 gtk_scale_button_set_adjustment
 gtk_scale_button_get_orientation
 gtk_scale_button_set_orientation
+gtk_scale_button_get_plus_button
+gtk_scale_button_get_minus_button
 gtk_scale_button_get_popup
 #endif
 #endif
index 1b930ccda3bb1bcfda5d7c372d399ed45db6af5c..5a8432ebb3a5fa9180695aee859b8f337ced2308 100644 (file)
@@ -758,6 +758,38 @@ gtk_scale_button_set_orientation (GtkScaleButton *button,
     }
 }
 
+/**
+ * gtk_scale_button_get_plus_button:
+ * @button: a #GtkScaleButton
+ *
+ * Retrieves the plus button of the #GtkScaleButton.
+ *
+ * Since: 2.14
+ */
+GtkWidget *
+gtk_scale_button_get_plus_button (GtkScaleButton *button)
+{
+  g_return_val_if_fail (GTK_IS_SCALE_BUTTON (button), NULL);
+
+  return button->plus_button;
+}
+
+/**
+ * gtk_scale_button_get_minus_button:
+ * @button: a #GtkScaleButton
+ *
+ * Retrieves the minus button of the #GtkScaleButton.
+ *
+ * Since: 2.14
+ */
+GtkWidget *
+gtk_scale_button_get_minus_button (GtkScaleButton *button)
+{
+  g_return_val_if_fail (GTK_IS_SCALE_BUTTON (button), NULL);
+
+  return button->minus_button;
+}
+
 /**
  * gtk_scale_button_get_popup:
  * @button: a #GtkScaleButton
@@ -766,7 +798,7 @@ gtk_scale_button_set_orientation (GtkScaleButton *button,
  *
  * Since: 2.14
  */
-GtkWidget*
+GtkWidget *
 gtk_scale_button_get_popup (GtkScaleButton *button)
 {
   g_return_val_if_fail (GTK_IS_SCALE_BUTTON (button), NULL);
index 6ba51b229a4f13b75f8a74d0330f168fbe3be613..ec6baf0402f7c53f732b0cb7179d6673efdefdca 100644 (file)
@@ -81,24 +81,26 @@ struct _GtkScaleButtonClass
   void (*_gtk_reserved4) (void);
 };
 
-GType            gtk_scale_button_get_type        (void) G_GNUC_CONST;
-GtkWidget *      gtk_scale_button_new             (GtkIconSize      size,
-                                                   gdouble          min,
-                                                   gdouble          max,
-                                                   gdouble          step,
-                                                   const gchar    **icons);
-void             gtk_scale_button_set_icons       (GtkScaleButton  *button,
-                                                   const gchar    **icons);
-gdouble          gtk_scale_button_get_value       (GtkScaleButton  *button);
-void             gtk_scale_button_set_value       (GtkScaleButton  *button,
-                                                   gdouble          value);
-GtkAdjustment *  gtk_scale_button_get_adjustment  (GtkScaleButton  *button);
-void             gtk_scale_button_set_adjustment  (GtkScaleButton  *button,
-                                                   GtkAdjustment   *adjustment);
-GtkOrientation   gtk_scale_button_get_orientation (GtkScaleButton  *button);
-void             gtk_scale_button_set_orientation (GtkScaleButton  *button,
-                                                   GtkOrientation   orientation);
-GtkWidget *      gtk_scale_button_get_popup      (GtkScaleButton *button);
+GType            gtk_scale_button_get_type         (void) G_GNUC_CONST;
+GtkWidget *      gtk_scale_button_new              (GtkIconSize      size,
+                                                    gdouble          min,
+                                                    gdouble          max,
+                                                    gdouble          step,
+                                                    const gchar    **icons);
+void             gtk_scale_button_set_icons        (GtkScaleButton  *button,
+                                                    const gchar    **icons);
+gdouble          gtk_scale_button_get_value        (GtkScaleButton  *button);
+void             gtk_scale_button_set_value        (GtkScaleButton  *button,
+                                                    gdouble          value);
+GtkAdjustment *  gtk_scale_button_get_adjustment   (GtkScaleButton  *button);
+void             gtk_scale_button_set_adjustment   (GtkScaleButton  *button,
+                                                    GtkAdjustment   *adjustment);
+GtkOrientation   gtk_scale_button_get_orientation  (GtkScaleButton  *button);
+void             gtk_scale_button_set_orientation  (GtkScaleButton  *button,
+                                                    GtkOrientation   orientation);
+GtkWidget *      gtk_scale_button_get_plus_button  (GtkScaleButton  *button);
+GtkWidget *      gtk_scale_button_get_minus_button (GtkScaleButton  *button);
+GtkWidget *      gtk_scale_button_get_popup        (GtkScaleButton  *button);
 
 G_END_DECLS